<!-- =========================
            FOOTER 
            ============================== -->
        <footer id="contact-us">
            <div class="container-fuild footer-info">
                <div class="footer-info-inn container">
                    <div class="col-md-8">
                        <p class="footer-tit01"><?php echo Yii::app()->params['text_header_contact']?></p>
                        <p class="footer-fb"><span class="footer_txt01">
                        <?php
                            $urlFacebook = UrlEncode(Yii::app()->params['facebook']);
                            if ($urlFacebook !== ""):?>
                                <iframe src="//www.facebook.com/plugins/like.php?href=<?php echo $urlFacebook; ?>&amp;width&amp;layout=standard&amp;action=like&amp;show_faces=false&amp;share=false&amp;height=30&amp;colorscheme=dark" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:30px;" allowTransparency="false"></iframe>
                            <?php
                                endif;
                            ?>
                        </span></p>
                    </div>
                    <div class="col-md-4">
                        <!-- FORM -->
                        <div class="contact-form" id="contact" role="form">
                            <div class="col-md-12">
                                <p><input class="form-control input-box" id="name" type="text" name="name" placeholder="Your Name"></p>
                                <p><input class="form-control input-box" id="email" type="email" name="email" placeholder="Your Email"></p>
                                <p><input class="form-control input-box" id="subject" type="text" name="subject" placeholder="Subject"></p>
                                <p><textarea class="form-control textarea-box" id="message" rows="8" name="message" placeholder="Message"></textarea></p>
                            </div>
                            <button class="btn btn-primary standard-button2 ladda-button" id="submit" name="submit" data-style="expand-left">Send Us Message</button>
                        </div>
                        <!-- /END FORM -->
                    </div>
                </div>
            </div>
            <div class="container footer-link">
                <p>All Rights Reserved By <span class="footertxt01">Otus Consulting</span> 2014</p>
                <ul class="footer-link01">
                    <li><a href="<?php echo Yii::app()->baseUrl.'/'?>">Home</a></li>
                    <?php
                            if($menu){
                                foreach ($menu as $key => $value) {
                                    $subs = MyFunctionCustom::getSubMenuByParent($value['id']);
                                    if(count($subs)> 0){
                                        echo '<li><a href="'.Yii::app()->baseUrl.'/'.$subs[0]['parent']['url'] .'/'. $subs[0]['url'].'.html">' . $value['name'] . '</a></li>';
                                    }else{
                                        if($value['static_page'])
                                            echo '<li><a href="'. Yii::app()->baseUrl.'/'. $value['url'] . '.html">' . $value['name'] . '</a></li>';        
                                        else
                                            echo '<li><a href="#' . $value['url'] . '">' . $value['name'] . '</a></li>';    
                                    }
                                }
                                
                            }
                            ?>
                </ul>
            </div>
            <!-- /END CONTAINER -->   
        </footer>
        <!-- /END FOOTER --> 